<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewHotelTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewHotelLabel_idHotel}"/>
                    <h:outputText value="#{hotelController.selected.idHotel}" title="#{bundle.ViewHotelTitle_idHotel}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_name}"/>
                    <h:outputText value="#{hotelController.selected.name}" title="#{bundle.ViewHotelTitle_name}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_brandName}"/>
                    <h:outputText value="#{hotelController.selected.brandName}" title="#{bundle.ViewHotelTitle_brandName}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_brandCode}"/>
                    <h:outputText value="#{hotelController.selected.brandCode}" title="#{bundle.ViewHotelTitle_brandCode}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_country}"/>
                    <h:outputText value="#{hotelController.selected.country}" title="#{bundle.ViewHotelTitle_country}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_countryPhoneCode}"/>
                    <h:outputText value="#{hotelController.selected.countryPhoneCode}" title="#{bundle.ViewHotelTitle_countryPhoneCode}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_address}"/>
                    <h:outputText value="#{hotelController.selected.address}" title="#{bundle.ViewHotelTitle_address}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_zip}"/>
                    <h:outputText value="#{hotelController.selected.zip}" title="#{bundle.ViewHotelTitle_zip}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_categoryDescription}"/>
                    <h:outputText value="#{hotelController.selected.categoryDescription}" title="#{bundle.ViewHotelTitle_categoryDescription}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_telephone}"/>
                    <h:outputText value="#{hotelController.selected.telephone}" title="#{bundle.ViewHotelTitle_telephone}"/>
                    <h:outputText value="#{bundle.ViewHotelLabel_conveniences}"/>
                    <h:outputText value="#{hotelController.selected.conveniences}" title="#{bundle.ViewHotelTitle_conveniences}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{hotelController.destroyAndView}" value="#{bundle.ViewHotelDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewHotelEditLink}"/>
                <br />
                <h:commandLink action="#{hotelController.prepareCreate}" value="#{bundle.ViewHotelCreateLink}" />
                <br />
                <h:commandLink action="#{hotelController.prepareList}" value="#{bundle.ViewHotelShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewHotelIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
